package aor2.memory;

/**
 * Test memorija sa 32 reci.
 * 
 * @author Moxi
 * 
 */
public class TestMemory extends Memory {

	private static TestMemory singleton = null;

	public static TestMemory getInstance() {
		if (singleton == null)
			singleton = new TestMemory(32);
		return singleton;
	}

	private TestMemory(int capacity) {
		super(capacity);
		for (int i = 0; i < capacity; i++) {
			word[i] = capacity * 3 - i;
		}
	}

}
